//
//  ConversationViewController.h
//  HotWord
//
//  Created by Ji Qi on 12-6-30.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Message.h"
#import "MessageFromCell.h"
#import "MessageToCell.h"
#import "User.h"

@interface ConversationViewController : UIViewController<UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate, MessageToCellDelegate>
{
    NSMutableArray *_messages;
    User *_user;
}

@property (retain, nonatomic) IBOutlet UITableView *dialogTableView;
@property (retain, nonatomic) IBOutlet UIButton *backBtn;
@property (retain, nonatomic) IBOutlet UIView *toolbar;
@property (retain, nonatomic) IBOutlet UITextField *messageTextField;
@property (retain, nonatomic) IBOutlet UIImageView *noDataView;
@property (retain, nonatomic) IBOutlet UILabel *sendingLabel;

- (id)initWithUser:(User *)user;

- (IBAction)tapOnBackBtn:(id)sender;
- (IBAction)tapOnSendBtn:(id)sender;

@end
